// 静态路由,固定不变的路由
export const staticRouter= [
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/views/app/login/index.vue'),
        meta:{ // 元信息
            title:'登录'
        }
    },
    {
        path: '/register',
        name: 'Register',
        component: () => import('@/views/app/login/register.vue'),
        meta:{ // 元信息
            title:'注册'
        }
    }, {
        path: '/layout',
        name: 'layout',
        component: () => import('@/layout/index.vue'),
        meta: {
            title: '首页'
        },
    }
]

// 404路由
export const notFoundRouter = {
    path: "/:pathMatch(.*)*", // 匹配所有路径
    name: "NotFound",
    redirect: "/404",
}


// 错误页面路由
export const errorRouter = [
    {
        path: "/404",
        name: "404",
        component: () => import("@/views/app/error/404.vue"),
        meta: {
            title: "404",
        },
    },
    {
        path: "/403",
        name: "403",
        component: () => import("@/views/app/error/403.vue"),
        meta: {
            title: "403",
        },
    },
    {
        path: "/500",
        name: "500",
        component: () => import("@/views/app/error/500.vue"),
        meta: {
            title: "500",
        },
    },
]
